<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>interface IObserver</title>
	<style type="text/css">
	/* ZenDoc identity */
	.zendoc { font-family: Arial, Helvetica, sans-serif; margin:3px; }
	.zendoc a:hover { text-decoration:none; }
	.zendoc span.title-comment { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:80%; color:#AAA; }
	.zendoc span.title-zen { color:#26A; font-weight:normal; }
	.zendoc span.title-doc { color:black; font-weight:bold; }
	/* overall */
	html, body, div { margin:0; padding:0; border:none; }
	body { font-family:Arial, Helvetica, sans-serif; font-size:90%; }
	a { text-decoration:none; }
	a:hover { text-decoration:underline; }
	h2 { color:#999; margin:2em 0 0 0; padding:0 2px 0 20px; border-bottom:2px solid #58B; }
	h3 { color:#B36B00; margin-top:3em; }
	dl { margin:.5em 0 3px 0; }
	dt { font-weight:bold; }
	td { vertical-align:top; }
	th { text-align:left; color:#58B; background-color:#E3ECF4; }
	code { font-size:1.1em; }
	/* specific */
	#header { background-color:#EAEAEA; padding:1px; }
	#links { color:#999; background-color:#FFE; border-bottom:1px solid #58B; padding:2px 20px; }
	#links a { color:#999; }
	.content { padding:10px 20px; }
	#class-definition { background-color:#58B; color:white; }
	#class-definition .classkind { font-weight:bold; }
	#class-definition .classkind .package { font-weight:normal; }
	#class-definition .classname { font-size:4em; margin:5px 0; }
	#class-definition .superclassname { padding-left:20px; font-style:italic; }
	#class-definition .implements { padding-left:20px; font-style:italic; }
	#class-info .content { margin:20px; border:1px solid #58B; }
	pre.definition { background-color:#FFE; border:1px solid #E4E29A; padding:3px; }
	.generated {
		font-style:italic;
		font-size:80%;
		color:#666;
		margin:1em 0 0 0;
		padding:5px 20px;
		border-top:1px solid #999;
	}
	/* tables */
	.member-list { border:1px solid #58B; margin:2em 20px; }
	.member-list a { color:#B36B00; }
	.member-list table { border-collapse:collapse; }
	.member-list td { border-top:1px solid #58B; }
	.member-list td.name { width:175px; text-align:right; padding-right:5px; }
	.member-list table { width:100%; }
	.even { background-color:#FFE; }
	.odd { background-color:white; }
	.param .name { color:#666; }
	</style>
</head>

<body>
<div id="page">
	<div id="header">
		<h4 class="zendoc"><a href="../" title="返回"><span class="title-comment">返回</span></a></h4>
	</div>
	<div id="class-definition" class="section">
		<div class="content">
			
			<div class="classkind">interface <span class="package">org.weemvc.as2.core</span></div>
			<h1 class="classname">IObserver</h1>
			
			
			
		</div>
		<div id="links">
			<a href="#class-info">Class Information</a>
			
			
			 | <a href="#class-methods">Methods</a>
			
		</div>
	</div>
	
	<div id="class-info" class="section">
		<h2>Class Information</h2>
		<div class="content">
			
				<dl>
					
					
					<dt>Description</dt>
					<dd>观察者类接口。
<p>
WeeMVC 的观察者。
</p></dd>
					
					interface org.weemvc.as2.core.IObserver</dd>
					
				</dl>
			
			
			</div>
			
			
			
			
			
			
			<div class="member-list">
			<table><tr><th colspan="2">Methods</th></tr>
				<tr class="even">
					<td class="name"><a href="#setCallBack">setCallBack()</a></td>
					<td>设置此观察者的回调函数。</td>
				</tr><tr class="odd">
					<td class="name"><a href="#getCallBack">getCallBack()</a></td>
					<td>获取此观察者的回调函数。</td>
				</tr><tr class="even">
					<td class="name"><a href="#setContext">setContext()</a></td>
					<td>设置此观察者的作用域。</td>
				</tr><tr class="odd">
					<td class="name"><a href="#getContext">getContext()</a></td>
					<td>获取此观察者的作用域。</td>
				</tr><tr class="even">
					<td class="name"><a href="#notifyObserver">notifyObserver()</a></td>
					<td>执行通知。call回调函数，并且传递参数。</td>
				</tr><tr class="odd">
					<td class="name"><a href="#compareContext">compareContext()</a></td>
					<td>比较函数域是否为当前传递进来的一致。</td>
				</tr>
			</table></div>
			
			
	</div>
		
	
	
	<br />
	<div id="class-methods" class="member-group section">
		<h2>Methods</h2>
		<div class="content">
			<div class="member-item">
				<h3 id="setCallBack">setCallBack()</h3>
				<pre class="definition"><code>function setCallBack(method:Function):Void</code></pre>
				<div>设置此观察者的回调函数。</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="getCallBack">getCallBack()</h3>
				<pre class="definition"><code>function getCallBack():Function</code></pre>
				<div>获取此观察者的回调函数。</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="setContext">setContext()</h3>
				<pre class="definition"><code>function setContext(obj:Object):Void</code></pre>
				<div>设置此观察者的作用域。</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="getContext">getContext()</h3>
				<pre class="definition"><code>function getContext():Object</code></pre>
				<div>获取此观察者的作用域。</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="notifyObserver">notifyObserver()</h3>
				<pre class="definition"><code>function notifyObserver(wee:Object, data):Void</code></pre>
				<div>执行通知。call回调函数，并且传递参数。</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>wee</code></td><td>事件（命令类/在<code>View</code>的 getWeeList() 列表中的事件名称）</td></tr>
					<tr><td class="name"><code>data</code></td><td>传递的参数
<b>注意：因为传递的参数可以是任何类型，且如果为 Object 的话，则找不回原来的类型。所以这里不指定参数类型。</b></td></tr>
					</table></dd>
				</dl>
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="compareContext">compareContext()</h3>
				<pre class="definition"><code>function compareContext(object:Object):Boolean</code></pre>
				<div>比较函数域是否为当前传递进来的一致。</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>object</code></td><td>一个函数域</td></tr>
					</table></dd>
				</dl>
				<dl>
					<dt>Returns:</dt>
					<dd>是否一致</dd>
				</dl>
				
			
			
			
			
			</div>
		</div>
	</div>
	
	<p class="generated">Page generated: 9:58 pm on September 9, 2010</p>
</div>
</body>
</html>